﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace VehicleManagement.Models
{
    /// <summary>
    /// 用户登入信息
    /// </summary>
    public class UserLogin
    {
        [DisplayName("用户类型")]
        [Required(ErrorMessage = "用户类型不能为空")]
        [StringLength(12, ErrorMessage = "用户类型长度不能超过12位")]
        public string UserType { get; set; }

        [DisplayName("用户名")]
        [Required(ErrorMessage = "用户名不能为空")]
        [StringLength(18, ErrorMessage = "用户名长度不能超过18位")]
        public string UserName { get; set; }

        [DisplayName("密码")]
        [DataType(DataType.Password)]
        [Required(ErrorMessage = "密码不能为空")]
        [StringLength(18, ErrorMessage = "密码长度不能超过18位")]
        public string UserPassword { get; set; }

    }
}